import http from '../../utils/request'

export async function addUsers(data) {
  return http.request({
    url: 'admin/addUser',
    method: 'post',
    data
  })
}

export async function getUsers(pageNo,pageSize,value1,value2) {
  return http.request({
    url: `admin/getUser?pageNo=${pageNo}&pageSize=${pageSize}&loginName=${value1}&trueName=${value2}`,
    method: 'get',
    
  })
}

export async function handleUser(v,userIds) {
  return http.request({
    url: `admin/handleUser/${v}?userIds=${userIds}`,
    method: 'get',
  })
}
